<template>
  <div class="record-container">
    <h2 class="title">成绩查询</h2>
    <section class="search">
      <div class="course-search">
        <span class="iconfont">&#xe501;</span>
        <input
          class="course-search-inner"
          v-model="record.courseName"
          placeholder="请输入课程名"
        />
      </div>
      <div>
        <el-select></el-select>
      </div>
      <button type="search" class="search-btn">搜索</button>
    </section>
    <div class="datatable"></div>
  </div>
</template>

<script>
export default {
  name: "schoolRecord",
  data() {
    return {
      record: {}
    };
  }
};
</script>

<style lang="scss" scoped>
.record-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 70%;
  margin: 0 auto;
  background-color: #fff;

  .title {
    margin: 20px 0;
    font-size: 22px;
    margin-left: 10px;
  }
  .search {
    display: flex;
    height: 30px;
    width: 100%;
    margin-left: 10px;

    .course-search {
      height: 100%;
      width: 30%;
      margin: 0 15px;
      span {
        display: inline-block;
        height: 100%;
        line-height: 30px;
        font-size: 14px;
      }
      .course-search-inner {
        display: inline-block;
        height: 100%;
        font-size: 14px;
        outline: none;
        border: 1px solid salmon;
      }
      .course-search-inner::placeholder {
        color: #000;
      }
    }

    .search-btn {
      width: 7%;
      height: 100%;
      background-color: skyblue;
    }
  }
}
.iconfont {
  font-family: "iconfont";
  padding: 0 5px;
}
</style>
